﻿import request from '/@/utils/request';
enum Api {
  AddTrafficData = '/api/trafficData/add',
  DeleteTrafficData = '/api/trafficData/delete',
  UpdateTrafficData = '/api/trafficData/update',
  PageTrafficData = '/api/trafficData/page',
  DetailTrafficData = '/api/trafficData/detail',
}

// 增加交通量表名
export const addTrafficData = (params?: any) =>
	request({
		url: Api.AddTrafficData,
		method: 'post',
		data: params,
	});

// 删除交通量表名
export const deleteTrafficData = (params?: any) => 
	request({
			url: Api.DeleteTrafficData,
			method: 'post',
			data: params,
		});

// 编辑交通量表名
export const updateTrafficData = (params?: any) => 
	request({
			url: Api.UpdateTrafficData,
			method: 'post',
			data: params,
		});

// 分页查询交通量表名
export const pageTrafficData = (params?: any) => 
	request({
			url: Api.PageTrafficData,
			method: 'post',
			data: params,
		});

// 详情交通量表名
export const detailTrafficData = (id: any) => 
	request({
			url: Api.DetailTrafficData,
			method: 'get',
			data: { id },
		});


